package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.pro.domain.entity.ScoreScriptLogEntity;
import com.xbongbong.pro.score.pojo.dto.ScoreScripTtriggerDTO;
import com.xbongbong.pro.score.pojo.dto.ScoreScriptLogDTO;

/**
 * @author chunyang.qin
 * @Title: 评分规则
 * @date 2020/11/28
 */
public interface ScoreScriptService {


    /**
     * 数据库插入 “重新计算"脚本
     * @return
     * @throws XbbException
     */
    BaseVO saveScoreScript(ScoreScriptLogDTO scoreScriptLogDTO) throws XbbException;


    /**
     * 触发脚本
     * @return
     * @throws XbbException
     */
    BaseVO triggerScoreScript(ScoreScripTtriggerDTO scoreScriptLogDTO) throws XbbException;

    /**
     * 处理单个评分脚本
     * @param
     * @return
     * @throws XbbException
     */
    BaseVO handleSingleScoreScript(ScoreScriptLogEntity scoreScriptLogEntity) throws XbbException;

}
